package com.fifth.apartment.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-07-09
 */
@Data
@ApiModel(value="Equipment对象")
@AllArgsConstructor
@NoArgsConstructor
public class Equipment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备类型id")
    @TableField("type_id")
    private Integer typeId;

    @ApiModelProperty(value = "门牌号id")
    @TableField("room_id")
    private Integer roomId;

    @ApiModelProperty(value = "楼栋id")
    @TableField("building_id")
    private Integer buildingId;

    @ApiModelProperty(value = "设备状态/完好/损坏")
    @TableField("state")
    private String state;

    @ApiModelProperty(value = "设备详情")
    @TableField("details")
    private String details;

    @ApiModelProperty(value = "警告时间")
    @TableField("alarm_time")
    private String alarmTime;

    @TableField(exist = false)
    private String type;
    @TableField(exist = false)
    private String building;
    @TableField(exist = false)
    private String dorm;

}
